package cn.csc.module.shoppingCard.controller.admin.card.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 购物卡主表 Excel 导出 Request VO", description = "参数和 CardPageReqVO 是一致的")
@Data
public class CardExportReqVO {

    @ApiModelProperty("项目ID")
    private BigInteger projectId;

    @ApiModelProperty(value = "绑定的用户ID")
    private BigInteger userId;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "状态")
    private Byte status;

    /**
     * 是否激活
     */
    @ApiModelProperty(value = "是否激活")
    private Boolean activated;

    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireTime;

    @ApiModelProperty(value = "发卡（激活）时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] activatedAt;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
